// 由于在线上环境时也可以获取mock的数据
import { createProdMockServer } from "vite-plugin-mock/es/createProdMockServer";
import NewMockMethod from "../../mock/news";
import ProductMockMethod from "../../mock/products";
import CommonMockMethod from '../../mock/common'
// import UserMockMethod from "../../mock/user";

export const mockModules = [...NewMockMethod, ...ProductMockMethod, ...CommonMockMethod]

export function setupProdMockServer() {
    createProdMockServer(mockModules);
}
